/*
* @Date: 2021/1/21
* @Author: XueChengwu <xuechengwu@erayt.com>
* @Copyright: 2015-2019 Erayt, Inc.
* @Description: If you have some questions, please contact: xuechengwu@erayt.com.
*/

export default {
  display: 'inline-block',
  props: [{
    key: 'allowClear',
    type: 'boolean',
    label: '支持清除',
  }, {
    key: 'autoFocus',
    type: 'boolean',
    label: '自动聚焦',
  }, {
    key: 'bordered',
    type: 'boolean',
    label: '支持边框',
  }, {
    key: 'changeOnSelect',
    type: 'boolean',
    label: '动效',
  }, {
    key: 'defaultValue',
    type: 'array',
    label: '默认选项',
  }, {
    key: 'disabled',
    type: 'boolean',
    label: '禁用',
  }, {
    key: 'expandIcon',
    type: 'icon',
    label: '展开图标'
  }, {
    key: 'expandTrigger',
    type: 'select',
    options: ['click', 'hover'],
    label: '展开方式',
  }, {
    key: 'fieldNames',
    type: 'object',
    objectType: 'label:标签,value:键值,children:次级',
    label: '自定义字段',
  }, {
    key: 'loadData',
    type: 'function',
    function: '(selectOptions)',
    label: '动态加载选项',
  }, {
    key: 'notFoundContent',
    type: 'string',
    label: '空内容'
  }, {
    key: 'options',
    type: 'array',
    label: '数据源',
  }, {
    key: 'placeholder',
    type: 'string',
    label: '提示语',
  }, {
    key: 'showSearch',
    type: 'boolean|object',
    label: '搜索框',
  }, {
    key: 'size',
    type: 'select',
    options: ['large', 'middle', 'small'],
    label: '大小',
  }, {
    key: 'suffixIcon',
    type: 'icon',
    label: '后缀图标',
  }, {
    key: 'value',
    type: 'array',
    label: '选中值',
  }, {
    key: 'onChange',
    type: 'function',
    function: '(value, selectOptions)',
    label: '选中回调',
  }],
  defaultProps: {
    style: {
      width: 200,
    }
  }
}
